﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="FullSizeImage.aspx.vb" Inherits="HauntedNetworkingSite.FullSizeImage" %>

<%@ Register src="Banner.ascx" tagname="Banner" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <uc1:Banner ID="Banner1" runat="server" />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <asp:DataList ID="DataList1" runat="server" 
            DataSourceID="FullSizeImageDataSource" Width="40%">
            <ItemTemplate>
                <br />
                <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("Picture") %>' />
                <br />
            </ItemTemplate>
        </asp:DataList>
        <asp:SqlDataSource ID="FullSizeImageDataSource" runat="server" 
            ConnectionString="<%$ ConnectionStrings:PlacesConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:PlacesConnectionString.ProviderName %>" 
            SelectCommand="SELECT [Picture] FROM [UserUploadedImages] WHERE ([ID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    
    </div>
    <asp:HyperLink ID="HyperLink1" runat="server" CssClass="labelClass" 
        NavigateUrl="MyImages.aspx?UserName={0}">Go Back to My Images</asp:HyperLink>
    </form>
</body>
</html>
